package com.nl.controller.sms5g.service;


import com.nl.controller.sms5g.bean.bo.SignExcelData;

import javax.mail.Session;
import javax.mail.internet.MimeMessage;
import java.util.List;

/**
 * @desc 邮箱能力
 * @param
 * @return null
 * @author l
 * @date 2021/5/10 10:22
 */
public interface MailService {
    /**
     * @desc 
     * @param to
     * @param subject
     * @param content
     * @return void
     * @author l
     * @date 2021/5/10 10:29
     */
    public void sendSimpleMail(String to, String subject, String content);
    
    /**
     * @desc 发送存有附件的邮件
     * @param session 
     * @return javax.mail.internet.MimeMessage
     * @author l
     * @date 2021/6/4 17:20
     */
    public MimeMessage sendAccessoryMail(Session session, List<SignExcelData> list,String excelFileName) throws javax.mail.MessagingException;
 }
